# _*_ coding: utf-8 _*_
# @Time : 2024-01-16 22:17
# @Author : wf
import urllib.request
import urllib.request as request, urllib.parse as parse

url = 'http://www.baidu.com'

req = request.Request(url)

# handler
handler = urllib.request.HTTPHandler
# build_opener
opener = urllib.request.build_opener(handler)
# open
res = opener.open(req)
content = res.read().decode('utf-8')
print(content)
